<div id="editOwnerMemberModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <vc:i18n name="修改信息" namespace="editOwnerMember"></vc:i18n>
                </h3>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label  padding-lr-0">
                                    <vc:i18n name="人员角色" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editOwnerMemberInfo.personRole">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择人员角色','editOwnerMember')}}</option>
                                        <option value="2">{{vc.i18n('租客','addOwnerMember')}}</option>
                                        <option value="3">{{vc.i18n('家庭成员','addOwnerMember')}}</option>
                                        <option value="4">{{vc.i18n('公司员工','addOwnerMember')}}</option>
                                        <option value="99">{{vc.i18n('其他','addOwnerMember')}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">
                                    <vc:i18n name="客户名称" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.name" type="text"
                                        :placeholder="vc.i18n('必填，请填写客户名称','editOwnerMember')" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row" v-if="editOwnerMemberInfo.personType == 'P'">
                                <label class="col-sm-2 col-form-label">
                                    <vc:i18n name="性别" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editOwnerMemberInfo.sex">
                                        <option selected disabled value="">
                                            {{vc.i18n('必填，请选择性别','editOwnerMember')}}
                                        </option>
                                        <option value="0">{{vc.i18n('男','editOwnerMember')}}</option>
                                        <option value="1">{{vc.i18n('女','editOwnerMember')}}</option>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">
                                    <vc:i18n name="地址" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.address" type="text"
                                        :placeholder="vc.i18n('可填，请填写地址','editOwnerMember')" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6" style="text-align:center">
                            <div class="form-group row">
                                <div style="width: 100%;height: 10rem;">
                                    <img width="80%" height="150rem" v-if="editOwnerMemberInfo.ownerPhotoUrl"
                                        v-bind:src="editOwnerMemberInfo.ownerPhotoUrl" onerror="this.src='/img/noPhoto.jpg';"
                                        :alt="vc.i18n('业主照片','editOwnerMember')">
                                    <img width="80%" height="150rem" v-else src="/img/noPhoto.jpg"
                                        :alt="vc.i18n('业主照片','editOwnerMember')">
                                </div>

                                <div style="margin: 10px auto 0px auto;" class="text-center">

                                    <span class="btn btn-default btn-file" v-on:click="_uploadEditMemberPhoto($event)">
                                        <span class="fileinput-new">
                                            <vc:i18n name="上传照片" namespace="editOwnerMember"></vc:i18n>
                                        </span>
                                    </span>
                                    <input type="file" class="file" accept=".jpg" id="uploadEditOwnerMemberPhoto" hidden
                                        v-on:change="_chooseEditMemberPhoto($event)">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">
                                    <vc:i18n name="手机" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.link"
                                        :placeholder="vc.i18n('必填，请填写联系方式','editOwnerMember')" class="form-control"
                                        maxLength="11">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label  padding-lr-0">
                                    <vc:i18n name="备用手机" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.concactLink" type="text"
                                        :placeholder="vc.i18n('可选，请填写备用手机','editOwnerMember')" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group row" >
                                <label class="col-sm-2 col-form-label  padding-lr-0">
                                    <vc:i18n name="身份证" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.idCard" type="text"
                                        :placeholder="vc.i18n('可选，请填写身份证','editOwnerMember')" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">
                                    <vc:i18n name="备注" namespace="editOwnerMember"></vc:i18n>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model.trim="editOwnerMemberInfo.remark" type="tel"
                                        :placeholder="vc.i18n('可填，请填写备注','editOwnerMember')" class="form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div v-for="(item,index) in editOwnerMemberInfo.attrs">
                        <div class="row" v-if="index % 2 == 0">
                            <div class="col-sm-6">
                                <div class="form-group row" v-if="item.specType == '2233'">
                                    <label class="col-sm-2 col-form-label">{{item.specName}}</label>
                                    <div class="col-sm-10">
                                        <input v-model.trim="item.value" type="text" :placeholder="item.specHoldplace"
                                            class="form-control">
                                    </div>
                                </div>
                                <div class="form-group row" v-if="item.specType == '3344'">
                                    <label class="col-sm-2 col-form-label">{{item.specName}}</label>
                                    <div class="col-sm-10">
                                        <select class="custom-select" v-model.trim="item.value">
                                            <option selected disabled value="">{{item.specHoldplace}}</option>
                                            <option v-for="value in item.values" :label="value.valueName"
                                                :value="value.value">{{item.valueName}}
                                            </option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-6" v-if="index < editOwnerMemberInfo.attrs.length-1">
                                <div class="form-group row" v-if="editOwnerMemberInfo.attrs[index+1].specType == '2233'">
                                    <label
                                        class="col-sm-2 col-form-label">{{editOwnerMemberInfo.attrs[index+1].specName}}</label>
                                    <div class="col-sm-10">
                                        <input v-model.trim="editOwnerMemberInfo.attrs[index+1].value" type="text"
                                            :placeholder="editOwnerMemberInfo.attrs[index+1].specHoldplace"
                                            class="form-control">
                                    </div>
                                </div>
                                <div class="form-group row" v-if="editOwnerMemberInfo.attrs[index+1].specType == '3344'">
                                    <label
                                        class="col-sm-2 col-form-label">{{editOwnerMemberInfo.attrs[index+1].specName}}</label>
                                    <div class="col-sm-10">
                                        <select class="custom-select" v-model.trim="editOwnerMemberInfo.attrs[index+1].value">
                                            <option selected disabled value="">
                                                {{editOwnerMemberInfo.attrs[index+1].specHoldplace}}
                                            </option>
                                            <option v-for="value in editOwnerMemberInfo.attrs[index+1].values"
                                                :label="value.valueName" :value="value.value">
                                                {{editOwnerMemberInfo.attrs[index+1].valueName}}
                                            </option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="editOwnerMemberMethod()">
                            <vc:i18n name="保存"></vc:i18n>
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                            @click="_closeEditOwnerMemberModal()">
                            <vc:i18n name="取消"></vc:i18n>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>